def outer_fun():
    a = 1

    def inner_fun():
        print(a)  # 1
    inner_fun()


a = 10
outer_fun()
print(a)  # 10
